<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	
</body>
<script type="text/javascript">
	var xhr = new XMLHttpRequest();
	xhr.open('get','4.php',true);
	xhr.send(null);
	xhr.onreadystatechange = function(){
		if(this.readyState == 4){
			var j = this.responseText;
			// alert(j);
			// console.log(j);
			// console.log(j.name);
			// console.log(typeof(j));
			
			var zhuan = JSON.parse(j);
			console.log(zhuan.name);
			
		}
	}
</script>
</html>